package com.cloud.hotline.api.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;

import com.cloud.hotline.api.bean.HotlineCalculateForm;
import com.cloud.hotline.api.bean.HotlineUnitCaculateBean;
import com.cloud.hotline.api.entity.ToHotlineUnitRecord;
import com.cloud.hotline.api.provider.HotlineUnitCalculateProvider;
import com.cloud.hotline.common.utils.BaseMapperHelper;

public interface ToHotlineUnitRecordMapper extends BaseMapperHelper<ToHotlineUnitRecord> {

	@SelectProvider(type = HotlineUnitCalculateProvider.class, method = "caculate")
	@Results({ @Result(property = "pm", column = "pm", javaType = String.class),
			@Result(property = "mc", column = "mc", javaType = String.class),
			@Result(property = "jrzs", column = "jrzs", javaType = Integer.class) })
	List<HotlineUnitCaculateBean> caculate(HotlineCalculateForm form);
}